package edu.sctu.fengleilin.month05.day150521;

/**
 * Created by user09 on 2015/5/21.
 */
public class RunSonAddClass {
    public static void main(String[] args) {

        SonAddClass p1 = new SonAddClass(2, 3, 5);
        SonAddClass p2 = new SonAddClass(10, 20);
        SonAddClass p3 = new SonAddClass(1);

        System.out.println("a + b + c = " + p1.add());
        System.out.println("a + b = " + p2.add());
        System.out.println("a = " + p3.add());
    }

}
